#pragma once

#include <MyFC/Control.h>

class PEditor;
class PropertyList;

class VSplitter	: public MyFC::Control {
private:
	PEditor	&		m_Editor;
	PropertyList &	m_List;
	int				m_Pos;
	int				m_Start;
public:
	VSplitter(PEditor &);
public:
	virtual CRect Bounds() const;
	virtual bool HandleDragStart(unsigned int flags, const CPoint & p0, const CPoint & p);
	virtual void HandleDragEnd(unsigned int flags, const CPoint & p);
	virtual void HandleDragging(unsigned int flags, const CPoint & p);
	virtual bool HandleCursor(unsigned int flags, const CPoint & p);
};

class HSplitter	: public MyFC::Control {
private:
	PEditor	&		m_Editor;
	int				m_Pos;
	int				m_Start;
public:
	HSplitter(PEditor &);
public:
	virtual CRect Bounds() const;
	virtual bool HandleDragStart(unsigned int flags, const CPoint & p0, const CPoint & p);
	virtual void HandleDragEnd(unsigned int flags, const CPoint & p);
	virtual void HandleDragging(unsigned int flags, const CPoint & p);
	virtual bool HandleCursor(unsigned int flags, const CPoint & p);
};